package com.appkubes.fintech.restful.util;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class MathUtils {

    private static DecimalFormat df1 = new DecimalFormat("#.00");

    public static BigDecimal divTwo(Integer amt) {
        BigDecimal res = new BigDecimal(amt).divide(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
        return new BigDecimal(df1.format(res));
    }


}
